package com.ouc.openplatform.zykt.standardManage.dao;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import com.ouc.openplatform.zykt.standardManage.model.NJ_TestItemTemplet;
import com.ouc.openplatform.zykt.standardManage.model.NJ_TestStandardSubiterm;



public interface NJ_TestStandardSubitermDAO {
	public List<NJ_TestStandardSubiterm> searchAllTestStandardSubiterm(
			@Param("standardItermID") int standardItermID); // 查询标准子项

	public int insertTestStandardSubiterm(NJ_TestStandardSubiterm subiterm); // 增加标准子项

	public int editTestStandardSubiterm(NJ_TestStandardSubiterm subiterm); // 修改标准子项

	public int deleteTestStandardSubiterm(@Param("id") int id,
			@Param("standardItermID") int standarditermid); // 删除标准子项

	public int updateItemTime(int id);// 更新item_cycle

	public int checkName(NJ_TestStandardSubiterm subiterm);// 检查标准子项名称是否存在

	public List<NJ_TestItemTemplet> getItemidByName(String name);// 按名称查找标准项ID

	public String getUsernoByName(String name);// 按用户姓名查找ID

	public int importByExcel(NJ_TestStandardSubiterm subiterm);

	public int insertTest(NJ_TestStandardSubiterm subiterm);	
}
